import { requestClient } from '#/api/request';

// 创建
export async function createSysMenuApi(data: any) {
  return requestClient.post('/system/create-sys-menu', data);
}

// 更新状态
export async function updateSysMenuStatusApi(data: any) {
  return requestClient.patch('/system/update-sys-menu-status', data);
}

// 修改
export async function updateSysMenuApi(data: any) {
  return requestClient.post('/system/update-sys-menu', data);
}

//查询菜单
export async function getSysMenuTreeApi(params: any) {
  return requestClient.get('/system/get-sys-menu-tree', { params });
}

// 查询用户菜单
export async function getUserMenuTreeApi() {
  return requestClient.get('/system/get-user-menu-tree');
}
